package 算法语言基础.Day12_14;

import java.util.Scanner;

/**
 * @author IT_Jay
 * @date 2021/12/14 10:38 AM
 */
public class Test20 {
    public static void main(String[] args) {
        int sum =0;
        int[] array = new int[10001];
        Scanner scanner = new Scanner(System.in);
        System.out.println("n=");
        int n = scanner.nextInt();
        for (int i = 1; i <= n ; i++) {
            for (int j = 1; j <= 10000; j++) {
                if (i==1){
                    array[j] = 1;
                }
                if (j % i == 0 && i>1){
                    array[j] = -1 * array[j];
                }
            }
        }
        for (int i = 1; i < array.length; i++) {
            if (array[i] == 1) sum++;
        }
        System.out.println(sum);
        scanner.close();
    }
}
